package j06jicheng;

interface I1<T>{
    void f1(T t);
}
//确定
class M1 implements I1<String>{
    @Override
    public void f1(String s) {

    }
}
//不确定类型
class M2<E> implements I1<E>{
    @Override
    public void f1(E e) {

    }
}

public class J2jiekou {
    public static void main(String[] args) {
        new I1<String>(){
            @Override
            public void f1(String s) {
                System.out.println("s = " + s);
            }
        }.f1("hello");
    }
}
